<%@ include file="header.jsp" %>

<div class="barreGrise">
	<div class="gauche">Questions / R&eacute;ponse</div>
	<div class="droite"><a href="faq#question">Poser une question</a></div>
</div>
<br style="clear : both" />
<c:forEach var="message" items="${requestScope.messages}" >
	<div class="message" style="background-color : ${message.couleur}">
		<div class="cadreAvatar">
			<img src="/MiniIBay/images/avatars/${message.avatarMembre}" class="avatar_message" alt="Avatar du membre" />
		</div>
		<div style="float : left;">
			<b>${message.pseudoMembre}</b><br />
			<p class="infosSmall">${message.date}</p>
			${message.message}
		</div>
		<br style="clear : both" />
	</div>
</c:forEach>

<form name="poserQuestionFAQ" id="poserQuestionFAQ" method="post" action="poserQuestionFAQ">
	<fieldset>
		<legend>Posez votre question</legend>
		<a name="question"></a>
		<p class="double">
			<span class="gauche">
				<label for="desc">Question : </label>
				<span class="correction" id="desc-correction"></span>
				<span class="info" id="desc-info"></span>
			</span>
			<span class="droite">
				<textarea name="desc" onfocus="javascript:afficheInfo('desc-info')"  onblur="javascript:verifValeurTextarea('desc', 'poserQuestionFAQ')" ></textarea>
				<span id="desc-valid" class="correction">&nbsp;</span>
			</span>
		</p>
		<p class="simple">
			<input type="hidden" name="idannonce" value="${requestScope.annonce.idAnnonce}" />
			<input type="submit" value="Envoyer" />
		</p>
	</fieldset>
</form>

<ul>
	<c:forEach var="erreur" items="${requestScope.erreur}" >
		<li><c:out value="${erreur}" /></li>
	</c:forEach>
</ul>
<%@ include file="footer.jsp" %>